package com.oneonefive.trainticketsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.oneonefive.trainticketsystem.DTO.UserDTO;
import com.oneonefive.trainticketsystem.pojo.User;
import jakarta.servlet.http.HttpSession;

import java.io.Serializable;
import java.util.List;


public interface UserService extends IService<User> {

    int getRowCount(Integer userId, String userName);

    List<User> getAllUser(Integer userId, String userName, int startRow);

    @Override
    default boolean removeById(Serializable id) {
        return IService.super.removeById(id);
    }

    @Override
    boolean saveOrUpdate(User entity);

    UserDTO loginCheck(User user, HttpSession httpSession);
}
